//
//  ViewController.swift
//  约健
//
//  Created by tyh on 2017/9/12.
//  Copyright © 2017年 tyh. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
  

    override func viewDidLoad() {
        super.viewDidLoad()
        let bjimage = UIImageView.init(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height))
        bjimage.image = UIImage(named: "mbj.jpg")
        
        self.view.addSubview(bjimage)
        
        
        let darkView = darkview.init(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height:  UIScreen.main.bounds.height))
        darkView.Go.addTarget(self, action: #selector(Go), for: .touchUpInside)
        
        
        
        self.view.addSubview(darkView)
       
    }
    
    func Go(){
        UIApplication.shared.keyWindow!.rootViewController = MainTabBarViewController()
    }
    



    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

